package com.xinz.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.xinz.model.Player;
import com.xinz.service.PlayerService;
import com.xinz.shared.player.PlayerInterface;
import com.xinz.shared.player.SharePlayer;

public class PlayerAction extends BaseAction implements PlayerInterface{

	private static final Logger log = LoggerFactory.getLogger(PlayerAction.class);
	
	/**
	 * 登陆返回信息
	 */
	@Override
	public SharePlayer login(String pid, String name) {
		Player player = PlayerService.login(pid, name);
		// 登陆后返回全量信息给玩家
		return PlayerService.makeSharePlayer(player);
	}

	@Override
	public SharePlayer getInfo() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public SharePlayer entry(int room) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void quit() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void ready() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void switchTable() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void startSpot() {
		// TODO Auto-generated method stub
		
	}

}
